#!/bin/sh

: "${VNDR_COMMIT:=85886e1ac99b8d96590e6e0d9f075dc7a711d132}" # v0.1.1

install_vndr() {
	echo "Install vndr version $VNDR_COMMIT"
	git clone https://github.com/LK4D4/vndr.git "$GOPATH/src/github.com/LK4D4/vndr"
	cd "$GOPATH/src/github.com/LK4D4/vndr" || exit 1
	git checkout -q "$VNDR_COMMIT"
	go build -buildmode=pie -v -o "${PREFIX}/vndr" .
}
